﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameViewer.Core.Plugins;

namespace GameViewer.Core
{
    public class PluginManager : Singleton<PluginManager>
    {
        public PluginManager()
        {
            List<IPlugin> plugins = PluginHelper.GetPlugins<IPlugin>(MainForm.Instance.AppDirectory + "/Plugins");
            foreach (IPlugin plugin in plugins)
            {
                plugin.Active = true;
            }
        }        
    }
}
